package com.xy.fusiontsjl;


import android.content.Intent;
import android.content.res.Configuration;

import android.os.Bundle;

import android.util.Log;
import android.view.KeyEvent;


import com.example.myapplication.GameMainActivity;
//import com.unity3d.player.UnityPlayerActivity;



public class MainActivity extends GameMainActivity {
//public class MainActivity extends UnityPlayerActivity {


    @Override
    protected void onCreate(Bundle bundle) {
            super.onCreate(bundle);
    }


    @Override
    protected void onResume() {
        super.onResume();

    }

    @Override
    protected void onStart() {
        super.onStart();

    }

    @Override
    protected void onPause() {

        super.onPause();

    }

    @Override
    protected void onRestart() {
        super.onRestart();

    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);

    }

    @Override
    protected void onStop() {
        super.onStop();

    }

    @Override
    protected void onDestroy() {

        super.onDestroy();
    }

    @Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);

    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);

    }

    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
        super.onWindowFocusChanged(hasFocus);

    }

    @Override
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);

    }

    @Override
    public void onBackPressed() {
        Log.e("Main", "onBackPressed");
    }


    @Override
    public void SDKLogin() {
        Log.e("Main", "SDKLogin");
    }

    @Override
    public void SDKLogout() {
        Log.e("Main", "SDKLogout");

    }

    @Override
    public void SDKPay(String rmb, String SDKUid, String roleName, String itemId, String productName,
                       String roleId, String serverId, String orderId, String callbackUrl,
                       String extra1, String extra2, String serverName, String roleLevel,
                       String purchaseType) {
        Log.e("Main", "SDKPay");
        Log.v("SDKPay rmb: ", rmb);
        Log.v("SDKPay SDKUid: ", SDKUid);
        Log.v("SDKPay roleName: ", roleName + "");
        Log.v("SDKPay itemId: ", itemId);
        Log.v("SDKPay serverId: ", serverId);
        Log.v("SDKPay orderId: ", orderId);
        Log.v("SDKPay callbackUrl: ", callbackUrl);
        Log.v("SDKPay extra1: ", extra1);
        Log.v("SDKPay extra2: ", extra2);

    }


    @Override
    public void SDKLoginGame(String gameUserId, String serverId, String roleId, String roleName, String serverName, String rank, String balance, String sociaty, String vipRank, String powerNum, String roleCreateTime, String roleRankUpTime) {
        Log.e("Main", "SDKLoginGame");
        Log.e("SDKLoginGame", "uid=" + gameUserId);
        Log.e("SDKLoginGame", "sid=" + serverId);
        Log.e("SDKLoginGame", "roleId=" + roleId);

    }

    @Override
    public void SDKCreateRole(String gameUserId, String serverId, String roleId, String roleName, String serverName, String rank, String balance, String sociaty, String vipRank, String powerNum, String roleCreateTime, String roleRankUpTime) {
        Log.e("Main", "SDKCreateRole");
        Log.e("SDKCreateRole", "uid=" + gameUserId);
        Log.e("SDKCreateRole", "sid=" + serverId);
        Log.e("SDKCreateRole", "roleId=" + roleId);
        Log.e("SDKCreateRole", "roleName=" + roleName);
    }

    @Override
    public void SDKPlayerInfo(String gameUserId, String serverId, String roleId, String roleName, String serverName, String rank, String balance, String sociaty, String vipRank, String powerNum, String roleCreateTime, String roleRankUpTime) {
        Log.e("Main", "SDKPlayerInfo");
        Log.e("SDKPlayerInfo", "serverId=" + serverId);
        Log.e("SDKPlayerInfo", "area=" + serverName);
        Log.e("SDKPlayerInfo", "role=" + roleName);
        Log.e("SDKPlayerInfo", "rank=" + rank);
        Log.e("SDKPlayerInfo", "sociaty=" + sociaty);
    }


    @Override
    public void showUserAgrement() {

        Log.e("xysdk", "SDKCallUserAgreement");
    }

    @Override
    public void helpService(String SDKUid, String sid, String roleName, String roleId) {
        Log.e("XYSDK", "helpService SDKUid:" + SDKUid +
                "||sid:" + sid + "||roleName:" + roleName
                + "||roleId:" + roleId);

    }

    @Override
    public void SDKShowCancelAccount() {
    }




    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
            return false;

    }



    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
    }


}
